import request from "@/utils/request";
// 查询参数列表
export function listPage(query) {
    return request({
        url: "/tires/goods/listPage",
        method: "get",
        params: query,
    });
}

export function goodsInfo(id) {
    return request({
        url: "/tires/goods/info/" + id,
        method: "get",
    });
}

// 查询字典数据详细
export function getTiresType() {
    return request({
        url: "/system/dict/data/type/tires_type",
        method: "get",
    });
}

// 查询参数列表
export function assetlist(query) {
    return request({
        url: "/tires/asset/list",
        method: "get",
        params: query,
    });
}

export function assetapplicationSave(data) {
    return request({
        url: "/tires/application/save",
        method: "post",
        data: data,
    });
}

export function faqslist(query) {
    return request({
        url: "/tires/faqs/list",
        method: "get",
        params: query,
    });
}

export function warrantySave(data) {
    return request({
        url: "/tires/warranty/save",
        method: "post",
        data: data,
    });
}

export function getIndexBanner() {
    return request({
        url: "/index/getIndexBanner",
        method: "get",
    });
}

// 查询关于我们列表
export function listUs(query) {
    return request({
        url: "/tires/us/list",
        method: "get",
        params: query,
    });
}

//发送邮件
export function sendSimpleMail(data) {
    return request({
        url: "/mail/sendSimpleMail",
        method: "post",
        data: data,
    });
}
